<?php
/**
 * Single Post Template
 *
 * This template is the default page template. It is used to display content when someone is viewing a
 * singular view of a post ('post' post_type).
 * @link http://codex.wordpress.org/Post_Types#Post
 *
 * @package WooFramework
 * @subpackage Template
 */
	get_header();
	global $woo_options;
	
/**
 * The Variables
 *
 * Setup default variables, overriding them if the "Theme Options" have been saved.
 */
	
	$settings = array(
					'thumb_single' => 'false', 
					'single_w' => 200, 
					'single_h' => 200, 
					'thumb_single_align' => 'alignright'
					);
					
	$settings = woo_get_dynamic_values( $settings );
	
	$embed_width = 760;
	if ( woo_active_sidebar( 'secondary' ) ) { $embed_width = '500'; }
?>
       
    <div id="content" class="col-full">
		<section id="main" class="col-right">
       
		 <?php
                        // Load the front page search form.
//                        if ( $settings['enable_searchbox'] == 'true' ) {
                                get_template_part( 'includes/advanced-search-form' );
 //                       }

                        // Load the filter bar.
//                        if ( $settings['enable_filterbar'] == 'true' ) {
//                                get_template_part( 'includes/filter-bar' );
//                        }
                ?>
		           
		<?php if ( isset( $woo_options['woo_breadcrumbs_show'] ) && $woo_options['woo_breadcrumbs_show'] == 'true' ) { ?>
			<section id="breadcrumbs">
				<?php woo_breadcrumbs(); ?>
			</section><!--/#breadcrumbs -->
		<?php } ?>
        <?php
        	if ( have_posts() ) { $count = 0;
        		while ( have_posts() ) { the_post(); $count++;
        ?>
			<article <?php post_class(); ?>>

				<header>
                
	                <h1 class="title entry-title"><?php the_title(); ?></h1>	
	                
                	<?php woo_post_meta(); ?>
   
                </header>
                
                <div class="fix"></div>

				<?php echo woo_embed( 'width=' . $embed_width ); ?>
                <?php
					$image = woo_image( 'return=true&width=' . $settings['single_w'] . '&height=' . $settings['single_h'] . '&link=img&class=thumbnail' );
					
					if ( $image != '' ) {
				?>

            <?php if ( isset( $woo_options['woo_post_content'] ) && $woo_options['woo_post_content'] != 'content' ) { ?>
<!--            <div class="drop-shadow curved curved-hz-1 <?php echo $settings['thumb_single_align']; ?>">
			<a title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>" style="height: <?php echo $settings['single_h']; ?>px;">
					<?php echo $image; ?>
            	</a>
            </div>  --><!--/.drop-shadow-->
                            
            <?php }} ?>
                
                <section class="entry">
                	<?php the_content(); ?>
				<?php the_tags( '<p class="tags">'.__( '本文关键字: ', 'woothemes' ), ', ', '</p>' ); ?>
<!-- Baidu Button BEGIN -->
    <div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare">
        <a class="bds_qzone"></a>
        <a class="bds_tsina"></a>
        <a class="bds_tqq"></a>
        <a class="bds_renren"></a>
        <span class="bds_more">分享到</span>
		<a class="shareCount"></a>
    </div>
<!-- Baidu Button END -->             
					<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'woothemes' ), 'after' => '</div>' ) ); ?>
				</section>
<span style="font-size: 20px;color:blue;">请顺手投一票！您对于本文的评价，有助于我改善内容的质量，谢谢合作。</span>
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
<!-- <a target="_bank" onclick="javascript: _gaq.push(['_trackPageview', '/Go/feed']);" href="http://www.zhanggang.net/Go/feed"><img src="http://www.zhanggang.net/wp-content/blogs.dir/1/files/2012/09/rss468x60.jpg" alt="订阅张刚博客"></a> -->
<!-- <img src="http://www.zhanggang.net/files/toupiao.gif" alt="投票"> -->
            </article><!-- .post -->

				<?php if ( isset( $woo_options['woo_post_author'] ) && $woo_options['woo_post_author'] == 'true' ) { ?>
				<aside id="post-author" class="fix vcard">
					<div class="profile-image"><?php echo get_avatar( get_the_author_meta( 'ID' ), '70' ); ?></div>
					<div class="profile-content fn">
						<h3 class="title"><?php printf( esc_attr__( '作者: %s', 'woothemes' ), get_the_author() ); ?></h3>
						<?php the_author_meta( 'description' ); ?>
						<div class="profile-link">
							<a class="vcard author fn" rel="author" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>">
								<?php printf( __( 'View all posts by %s <span class="meta-nav">&rarr;</span>', 'woothemes' ), get_the_author() ); ?>
							</a>
						</div><!-- #profile-link	-->
					</div><!-- .post-entries -->
				</aside><!-- #post-author -->
				<?php } ?>

				<?php woo_subscribe_connect(); ?>
            <?php
            	// Determine wether or not to display comments here, based on "Theme Options".
            	if ( isset( $woo_options['woo_comments'] ) && in_array( $woo_options['woo_comments'], array( 'post', 'both' ) ) ) {
            		comments_template();
            	}

				} // End WHILE Loop
			} else {
		?>
			<article <?php post_class(); ?>>
            	<p><?php _e( 'Sorry, no posts matched your criteria.', 'woothemes' ); ?></p>
			</article><!-- .post -->             
       	<?php } ?>  

	        <nav id="post-entries" class="fix">
	            <div class="nav-prev fl"><?php previous_post_link( '%link', '<span class="meta-nav">&larr;</span> %title' ); ?></div>
	            <div class="nav-next fr"><?php next_post_link( '%link', '%title <span class="meta-nav">&rarr;</span>' ); ?></div>
	        </nav><!-- #post-entries -->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4244442953400254";
/* 728x90_zhanggang_net */
google_ad_slot = "2538667840";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>        
		</section><!-- #main -->

        <?php get_sidebar(); ?>

    </div><!-- #content -->
		
<?php get_footer(); ?>